<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition template="/WEB-INF/template/default.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:sf="http://www.springframework.org/tags/faces"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">

	<ui:define name="title">Register Form</ui:define>

	<ui:define name="content">
		<f:view>
			<h:form>
				<h:panelGrid columns="2">
					<h:outputLabel for="name">Name</h:outputLabel>
<!--					<sf:clientTextValidator required="true" regExp="[0-9]{10}">-->
						<h:inputText id="name" value="#{personRegisterForm.name}" />
<!--					</sf:clientTextValidator>-->
				</h:panelGrid>
				<sf:validateAllOnClick>
					<h:commandButton value="Save" action="save" />
				</sf:validateAllOnClick>
			</h:form>
			
		</f:view>
	</ui:define>
</ui:composition>